//
//  YZCheckCenter.h
// GallopFresh_app
//
//  Created by huangwq on 2018/6/3.
//  Copyright © 2018年 yzgt. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>

typedef NS_ENUM(NSInteger,DeviceType) {
    Unknown = 0,
    Simulator,
    IPhone_1G,          //基本不用
    IPhone_3G,          //基本不用
    IPhone_3GS,         //基本不用
    IPhone_4,           //基本不用
    IPhone_4s,          //基本不用
    IPhone_5,
    IPhone_5C,
    IPhone_5S,
    IPhone_SE,
    IPhone_6,
    IPhone_6P,
    IPhone_6s,
    IPhone_6s_P,
    IPhone_7,
    IPhone_7P,
    IPhone_8,
    IPhone_8P,
    IPhone_X,
    
    IPhone_XR,
    IPhone_XS,
    iPhone_XS_Max,
    
    iPhone_11,
    iPhone_11_Pro,
    iPhone_11_Pro_Max,
    iPhone_SE_2,
    iPhone_12_Mini,
    iPhone_12,
    iPhone_12_Pro,
    iPhone_12_Pro_Max,
    iPhone_13_Mini,
    iPhone_13,
    iPhone_13_Pro,
    iPhone_13_Pro_Max,
};

    
@interface XTCheckCenter : NSObject
+(NSData *)imageData:(UIImage *)myimage;

+ (BOOL)judgTextFieldType:(NSInteger)type withText:(NSString *)text;

+ (BOOL)validateIDCardNumber:(NSString *)value ;

+ (NSString *) removeSpaceAndNewline:(NSString *)occurString;

+ (NSString *) replacingString:(NSString *)occurString ofString:(NSString *)ofString withString:(NSString *)withString;

+ (CGFloat) heightForTextView: (UITextView *)textView WithText: (NSString *) strText;


//+ (DeviceType)deviceType;

+ (NSString *)getDeviceTypeIdentifier;

+ (void)clearCache;

 @end
